import request from '@/utils/request'
import { renderUrl } from '../utils'

const headers = {
  'Content-Type': 'application/json'
}


// 充值记录
export function depositList(data) {
  return request({
    url: '/withdraw/record/deposit',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 提现记录
export function withdrawalList(data) {
  return request({
    url: '/withdraw/record/withdrawal',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 交易记录详情
export function recordDetailList(data) {
  return request({
    url: '/withdraw/record/trad',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}
// 交易记录
export function tradList(data) {
  return request({
    url: `/withdraw/record/trad-top?endTime=${data.endTime}&startTime=${data.startTime}`,
    method: 'get',
    // data: JSON.stringify(data),
    headers
  })
}
// 站内划转记录
export function transferList(data) {
  return request({
    url: `/withdraw/record/transfer`,
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}

